﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Private/Privada.master" AutoEventWireup="true" CodeBehind="CriarEmpresa.aspx.cs" Inherits="HRP.Private.Empresa.CriarEmpresa" %>

<asp:Content ID="Content1" ContentPlaceHolderID="PrivadaMainContent" runat="server">

    <div class="page-heading animated fadeInDownBig">
        <h1>Criar Nova Empresa</h1>
    </div>
    <asp:Panel ID="msgPanel" runat="server">
        <div class="alert alert-success alert-dismissable">
            <strong>
                <asp:Label ID="Label1" runat="server" Text=""></asp:Label></strong>
        </div>
    </asp:Panel>
    <asp:Panel ID="errorPanel" runat="server">
        <div class="alert alert-danger alert-dismissable">
            <strong>
                <asp:Label ID="errorMsgLabel" runat="server" Text=""></asp:Label></strong>
        </div>
    </asp:Panel>
    <asp:Panel ID="formPanel" runat="server">
        <div class="box-info animated fadeInDown">
            <div id="myWizard">
                <section class="step" data-step-title="First step">
                    <div class="row">
                        <div class="col-sm-6">                            
                            <h5 class="borderBottom">Campos obrigatórios</h5>
                            <div class="form-group">
                                <label for="inputEmail">Nome</label>
                                <asp:TextBox ID="nomeTB" runat="server" class="form-control"></asp:TextBox>
                                <div class="has-error">
                                    <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" Display="Dynamic" CssClass="help-block"
                                        Text="Campo Obrigatório" ValidationGroup="validaGroup" ControlToValidate="nomeTB"></asp:RequiredFieldValidator>

                                </div>
                            </div>
                            <div class="row">
                                <div class="col-sm-6">
                                    <div class="form-group">
                                        <label for="inputEmail">NIF</label>
                                        <asp:TextBox ID="nifTB" runat="server" class="form-control"></asp:TextBox>
                                        <div class="has-error">
                                            <asp:RequiredFieldValidator ID="RequiredFieldValidator2" runat="server" Display="Dynamic" CssClass="help-block"
                                                Text="Campo Obrigatório" ValidationGroup="validaGroup" ControlToValidate="nifTB"></asp:RequiredFieldValidator>
                                        </div>
                                    </div>
                                </div>
                                <div class="col-sm-6">
                                    <div class="form-group">
                                        <label for="inputEmail">Segurança Social</label>
                                        <asp:TextBox ID="ssTB" runat="server" class="form-control"></asp:TextBox>
                                        <div class="has-error">
                                            <asp:RequiredFieldValidator ID="RequiredFieldValidator3" runat="server" Display="Dynamic" CssClass="help-block"
                                                Text="Campo Obrigatório" ValidationGroup="validaGroup" ControlToValidate="ssTB"></asp:RequiredFieldValidator>
                                        </div>
                                    </div>
                                </div>
                            </div>
                            <div class="form-group">
                                <label for="inputPassword">Morada</label>
                                <asp:TextBox ID="moradaTB" class="form-control" runat="server"></asp:TextBox>
                                <div class="has-error">
                                    <asp:RequiredFieldValidator ID="RequiredFieldValidator4" Display="Dynamic" runat="server" CssClass="help-block"
                                        Text="Campo Obrigatório" ValidationGroup="validaGroup" ControlToValidate="moradaTB"></asp:RequiredFieldValidator>
                                </div>
                            </div>
                            <h5 class="borderBottom">Campos opcionais</h5>
                            <div class="row">
                                <div class="col-sm-4">
                                    <div class="form-group">
                                        <label for="inputPassword">Código Postal</label>
                                        <asp:TextBox ID="codigoPostalTB" class="form-control" runat="server"></asp:TextBox>
                                    </div>
                                </div>
                                <div class="col-sm-8">
                                    <div class="form-group">
                                        <label for="inputEmail">Pais</label><br />
                                        <asp:DropDownList ID="paisesDL" runat="server" CssClass="form-control selectpicker" DataTextField="name" DataValueField="id"></asp:DropDownList>
                                    </div>
                                </div>
                            </div>
                            <div class="row">
                                <div class="col-sm-6">
                                    <div class="form-group">
                                        <label for="inputEmail">Telefone</label>
                                        <asp:TextBox ID="telefoneTB" runat="server" class="form-control"></asp:TextBox>
                                    </div>
                                </div>
                                <div class="col-sm-6">
                                    <div class="form-group">
                                        <label for="inputEmail">Telemóvel</label>
                                        <asp:TextBox ID="tlmTB" runat="server" class="form-control"></asp:TextBox>
                                    </div>
                                </div>
                            </div>
                            <div class="row">
                                <div class="col-sm-6">
                                    <div class="form-group">
                                        <label for="inputEmail">Email Geral</label>
                                        <asp:TextBox ID="emailTB" runat="server" class="form-control"></asp:TextBox>
                                    </div>
                                </div>
                                <div class="col-sm-6">
                                    <div class="form-group">
                                        <label for="inputEmail">FAX</label>
                                        <asp:TextBox ID="faxTB" runat="server" class="form-control"></asp:TextBox>
                                    </div>
                                </div>
                            </div>
                            <div class="form-group">
                                <label for="inputEmail">Ramo Actividade</label><br />
                                <asp:DropDownList ID="ramoDL" runat="server" CssClass="form-control selectpicker" DataTextField="ramo_actividade" DataValueField="id"></asp:DropDownList>
                            </div>
                                                                <div class="form-group">
                                        <label for="inputEmail">Website</label><br />
                                        <asp:TextBox ID="websiteTB" runat="server" CssClass="form-control"></asp:TextBox>
                                    </div>
                                    <div class="form-group">
                                        <label for="inputEmail">Sobre</label><br />
                                        <asp:TextBox ID="sobreTB" runat="server" CssClass="form-control"></asp:TextBox>
                                    </div>
                            <div class="form-group">
                                <label for="inputEmail">Logo</label>
                                <asp:FileUpload ID="FileUpload1" runat="server"></asp:FileUpload>
                            </div>
                        </div>
                        <div class="col-sm-6">
                            <br />
                            <div class="notes">
                                <h4><strong>Ajuda</strong></h4>
                                <p style="text-align: justify">
                                    Ao criar uma nova Empresa:
                                </p>
                                <ol>
                                    <strong>
                                        <li>Ter em atenção o pacote que adquiriu permite ainda criar mais uma empresa</li>
                                        <li>Colocar com o Maior detalhe possivel as informações.</li>
                                        <li>Essas informações serão usadas ex. gerar informações de facturamento entre outras funcionalidades.</li>

                                    </strong>
                                </ol>
                                <asp:LinkButton ID="criarEventoBT" class="btn btn-primary" runat="server"
                                    ValidationGroup="validaGroup" OnClick="criarEmpresaBT_Click">Criar Empresa</asp:LinkButton>
                            </div>
                        </div>
                    </div>
                </section>
            </div>
        </div>
    </asp:Panel>
</asp:Content>
